<#assign tit><#if _oper='add'>新增<#else>修改</#if>卡种区域</#assign>
<@page.html title=tit>
<div style="width:450px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">编号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${area.code!}" req="编号" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="code" value="${area.code!}">${area.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><input type="text" name="chName" value="${area.chName!}" req="名称" size="26" maxlength="50"><span class="require">*</span></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${area.note!}</textarea></td>
        </tr>
        <tr>
          <th>门店</th>
          <td></td>
        </tr>
      </table>
      <div style="width:90%; margin:0 auto; height:270px; overflow-y:auto;">
        <table class="list">
          <tr>
            <th width="15%">选择</th>
            <th width="35%">编号</th>
            <th width="50%" class="left">名称</th>
          </tr><#if shopList??><#list shopList as t>
          <tr<#if t_index%2==1> class="line2"<#else> class="line1"</#if>>
            <td class="no"><input type="checkbox" name="shops" value="${t.code}" <#if t.status?? && t.status=1> checked</#if>/></td>
            <td>${t.code}</td>
            <td class="left">${t.chName}</td>
          </tr></#list></#if>
        </table>
      </div>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>